<?php

/**
 * Description of Variables
 *
 * @author LongLT
 */
class Variables {
    
    public static function setParams(){
        Yii::app()->language = (isset(Yii::app()->request->cookies['language']->value)) 
                ? Yii::app()->request->cookies['language']->value 
                : 'en';
        
//        $vars = $model->findAll();
//        foreach ($vars as $var)
//            Yii::app()->params = array($var->name => $var->value);
    }
    
    public static function userState($status){
        switch ($status) {
            case 0 :
                return 'Inactive';
            case 1 :
                return 'Active';
            case 2 :
                return 'Banner';
            case 3 :
                return 'Removed';
        }
        
    }
}

?>
